package com.yuye.test.order.impl;

import com.yuye.test.order.DemoService;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Service
@Order(3)
public class DemoServiceImpl01 implements DemoService, Ordered {

    public DemoServiceImpl01() {
        System.out.println("DemoServiceImpl01被实例化了");
    }

    @Override
    public void say() {
        System.out.println("DemoServiceImpl01被执行了");
    }

    @Override
    public int getOrder() {
        return 0;
    }
}